CC_PREFIX = 
# CC_PREFIX = i586-mingw32msvc-

CFLAGS  = -O2 -Wall -mno-stack-arg-probe

SRCS = modulator.c newqpsktx.c demodulator.c newqpskrx.c filter.c tbl.c
OBJS = modulator.o newqpsktx.o demodulator.o newqpskrx.o filter.o tbl.o
HDRS = complex.h filter.h misc.h modemconfig.h newqpskrx.h newqpsktx.h tbl.h

all: libnewqpsk.a

libnewqpsk.a: $(OBJS)
	$(CC_PREFIX)ar cru libnewqpsk.a $(OBJS)

%.o: %.c $(HDRS) Makefile
	$(CC_PREFIX)gcc $(CFLAGS) -c $(SRCS)

clean:
	rm -f libnewqpsk.a
	rm -f *.o

